01b31154cf85354d461651e071afa232fae49db3,src/main/java/mcp/mobius/waila/gui/screens/config/ScreenFormatConfig.java,ScreenFormatConfig,initGui,#,77
Before Change
backgroundColor.setText("#" + Integer.toHexString(new Color(OverlayConfig.bgcolor).getRGB()).substring(2).toUpperCase(Locale.ENGLISH));
backgroundColor.setValidator(HEX_COLOR);
gradientTop = new GuiTextField(9, fontRendererObj, width / 4, 140 + textFieldOffset, 150, 16);
gradientTop.setText("#" + Integer.toHexString(new Color(OverlayConfig.gradient1).getRGB()).substring(2).toUpperCase(Locale.ENGLISH));
gradientTop.setValidator(HEX_COLOR);
gradientBottom = new GuiTextField(9, fontRendererObj, width / 4, 160 + textFieldOffset, 150, 16);
gradientBottom.setText("#" + Integer.toHexString(new Color(OverlayConfig.gradient2).getRGB()).substring(2).toUpperCase(Locale.ENGLISH));
After Change
backgroundColor.setText(OverlayConfig.toHex(new Color(OverlayConfig.bgcolor)));
backgroundColor.setValidator(HEX_COLOR);
gradientTop = new GuiTextField(9, fontRendererObj, width / 4, 140 + textFieldOffset, 150, 16);
gradientTop.setText(OverlayConfig.toHex(new Color(OverlayConfig.gradient1)));
gradientTop.setValidator(HEX_COLOR);
gradientBottom = new GuiTextField(9, fontRendererObj, width / 4, 160 + textFieldOffset, 150, 16);
gradientBottom.setText(OverlayConfig.toHex(new Color(OverlayConfig.gradient2)));